package org.osada.main;

import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.BasicGame;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.Input;
import org.newdawn.slick.SlickException;
 
import java.io.IOException;
import java.util.HashMap;

import org.newdawn.slick.BasicGame;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;

public class Game extends BasicGame
{
	KontrolerGraficzny Interfejs = null;

    public Game(String title)
    {
		super(title);
    }
    
    public void render(GameContainer container, Graphics g) throws SlickException
    {	
    	Interfejs.render(container, g);	//metoda renderowania klasy UI
    }
    
	public void init(GameContainer container) throws SlickException
	{
		Interfejs = new KontrolerGraficzny();	
		Interfejs.init(container);	//inicjalizacja UI
	}
	
	public void update(GameContainer container, int delta) throws SlickException
	{
		Interfejs.update(container, delta);		//metoda aktualizujaca stan UI
	}
}